Next | Prev | Up | Top | Contents | Index

Writing a SCSI init()

Because you use the INCLUDE directive to include a module into the kernel, your driver object module must contain a routine of the form drvinit(), where drv is the prefix for the device that you specified in the master file. If the driver module includes drvinit(), the system calls drvinit() at system boot time. Your driver can use drvinit() for boot-time device or driver initialization. To initialize the device sdk every time the system boots, you can include an sdkinit() routine in the driver object module sdk.o.

The drvinit() routine has no parameters:

sdk_init( )
{
 your code
};

Next | Prev | Up | Top | Contents | Index